package csci6450.chickenFriedFS.nuggetClient;

/**
 * This is a singleton class that will be used to store the settings the Meta
 * Server is initialized with. It will keep them in one place to make it easier
 * to access.
 * @author jacobschoen
 */
public class RuntimeSettings {

    private static RuntimeSettings settings = new RuntimeSettings();

    private RuntimeSettings(){
    }

    /**
     * Gets the instance of this class.
     * @return
     */
    public static RuntimeSettings getInstance(){
        return settings;
    }


    /**
     * The port that the Meta Server will listen on for client requests. The
     * default port number is 3000.
     **/
    private int metaServerPort = 2010;

    /**
     * Returns the port number the Meta Server listen on for client Requests.
     * @return the port number
     */
    public int getMetaServerPort(){
        return this.metaServerPort;
    }

    /**
     * Sets the port number the Meta Server will listen on for client requests.
     * @param set the new port number
     */
    public void setMetaServerPort(int set){
        this.metaServerPort = set;
    }

    /**
     * The IP address of the Meta Server. The default for now will be 127.0.0.1
     **/
    private String metaServerIP = "137.30.122.104";

    /**
     * Returns the IP address of the Meta Server.
     * @return the port number
     */
    public String getMetaServerIP(){
        return this.metaServerIP;
    }

    /**
     * Sets the IP address of the Meta Server.
     * @param set the new IP
     */
    public void setMetaServerIP(String set){
        this.metaServerIP = set;
    }

    

}
